export CROSS_COMPILE=~/MX28/buildroot/buildroot2024.02LTS/mx28_evk_v6.6/host/bin/arm-linux-
export ARCH=arm

make ARCH=arm CROSS_COMPILE=~/MX28/buildroot/buildroot2024.02LTS/mx28_evk_v6.6/host/bin/arm-linux- mx28evk_defconfig
make ARCH=arm CROSS_COMPILE=~/MX28/buildroot/buildroot2024.02LTS/mx28_evk_v6.6/host/bin/arm-linux- -j8
make ARCH=arm CROSS_COMPILE=~/MX28/buildroot/buildroot2024.02LTS/mx28_evk_v6.6/host/bin/arm-linux- clean
make ARCH=arm CROSS_COMPILE=~/MX28/buildroot/buildroot2024.02LTS/mx28_evk_v6.6/host/bin/arm-linux- u-boot.sb
make ARCH=arm CROSS_COMPILE=~/MX28/buildroot/buildroot2024.02LTS/mx28_evk_v6.6/host/bin/arm-linux- menuconfig

./tools/mkimage -n arch/arm/cpu/arm926ejs/mxs/mxsimage.mx28.cfg -T mxsimage -d arch/arm/cpu/arm926ejs/mxs/mxsimage.mx28.cfg u-boot.sb

elftosb -zf imx28 -c arch/arm/cpu/arm926ejs/mxs/u-boot-imx28.bd -o u-boot.sb
elftosb -f imx28 -c arch/arm/cpu/arm926ejs/mxs/u-boot-imx28.bd -o u-boot.sb

make mx28evk_defconfig O=output
make O=output -j8 
elftosb -f imx28 -c u-boot-imx28.bd -o output/u-boot.sb
